<?php
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body> 


<form name="myform" method="post" action="?module=page&action=<?=$action?>&pageid=<?=$pageid?>">
<input type="hidden" name="page[type]" value="<?=$type?>">
<div class="tag_menu" style="width:99%;margin-top:10px;">
	<ul>
		<li><a onClick="ShowTabs(0)" id="TabTitle0" href="###" class="selected">基本信息</a></li>
		<li><a onClick="ShowTabs(1)" id="TabTitle1" href="###">内容管理</a></li>
		<li><a onClick="ShowTabs(2)" id="TabTitle2" href="###">权限设置</a></li>
	</ul>
</div>
<table cellpadding="0" cellspacing="1" class="table_form">
<tbody id="Tabs0">
  <th width='30%'><strong>上级栏目</strong></th>
  <td>
<?=form::select_page(0, 'page[parentid]', 'parentid', '无（作为一级栏目）', $parentid,'',2)?>  <font color="red">*</font>  </td>
  </tr>
    <tr>
      <th><strong>单网页名称</strong></th>
      <td><input name='page[catname]' type='text' id='catname' value='<?=$catname?>' size='40' maxlength='50' require="true" datatype="require" msg="单网页名称不能为空">        <font color="red">*</font></td>
    </tr>
    <tr>
      <th><strong>单网页英文名</strong></th>
      <td><input name='page[catdir]' type='text' id='catdir' value='<?=$catdir?>' size='20' maxlength='50' require="true" datatype="require" msg="单网页英文名不能为空">  <font color="red">*</font></td>
    </tr>
    <tr>
      <th width='30%'><strong>META Title（单网页标题）</strong><br/>针对搜索引擎设置的标题</th>
    <td><input name='setting[meta_title]' type='text' id='meta_title' value='<?=$meta_title?>' size='60' maxlength='60'></th>    </tr>
    <tr>
      <th width='30%'><strong>META Keywords（单网页关键词）</strong><br/>针对搜索引擎设置的关键词</th>
      <td><textarea name='setting[meta_keywords]' cols='80' rows='7' id='meta_keywords'><?=$meta_keywords?></textarea></td>
    </tr>
    <tr>
      <th width='30%'><strong>META Description（单网页描述）</strong><br/>针对搜索引擎设置的网页描述</th>
      <td><textarea name='setting[meta_description]' cols='80' rows='7' id='meta_description'><?=$meta_description?></textarea></td>
    </tr>
    <tr>
      <th width='30%'><strong>单网页模板</strong></th>
      <td><?=form::select_template('default', 'setting[template]', 'template', $template, '','page')?></td>
    </tr>
    </tbody>
    
    <tbody id="Tabs1" style="display:none">
    <tr> 
      <td colspan="2">
      	<table cellpadding="0" cellspacing="1" class="table_list">
		  <caption>单网页内容</caption>
          <tr>
             <td>
             <textarea name="page[content]" id="content" style="display:none"><?=$content?></textarea> <?=form::editor('content', 'standard', '100%', 300)?>
             </td>
          </tr> 
		 </table>
      </td>
    </tr>
 </tbody>
    
    <tbody id="Tabs2" style="display:none">
    <tr> 
      <td colspan="2">
      	<table cellpadding="0" cellspacing="1" class="table_list">
		  <caption>角色权限</caption>
			  <tr>
				 <td>
                 <?=form::checkbox($ROLE, 'priv_roleid', 'priv_roleid', $priv_roleids)?>
                 </td>
			  </tr> 
		  </table>
      </td>
    </tr>
 </tbody>
</table>

<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
     <td width='30%'></td>
     <td><input type="submit" name="dosubmit" value=" 确定 ">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value=" 重置 "></td>
  </tr>
</table>
</form>


</body>
</html>
<script LANGUAGE="javascript">
<!--
$().ready(function() {
	  $('form').checkForm(1);
	});
//-->
</script>